package Global;


public class FileExpert {
	
	public static String getDirectoryNameForRawResultFileForThisFold()
	{
		//CoraXOClsYY.txt
		
		String folderName = DirectoryStructureAndSettingsClass.getFullPathOfTheRootDirectoryNameForTheCurrentDataset()
		+ConstantVariable.DefaultDirectoryNamesConstants.DirectoriesUnderDatasetDirectory.RAW_RESULTS_RELATED_TO_DATASET_FOLDER_NAME;
		
		
		return folderName;
	}
	
	public static String getFileNameForRawResultFileForThisFold(int foldNo, int stage)
	{
		//CoraXOClsYY.txt
		
		String fileName=DirectoryStructureAndSettingsClass.getDatasetName();
		
		//fileName += DirectoryStructureAndSettingsClass.getDatasetName()+(edgeType==0 ? "LO":"CO");
		
		fileName += "Cls";
		
		//fileName += (edgeType==0 ? ConstantVariable.ExecutionParameters.SELECTED_SECOND_LEVEL_LOCAL_CLASSIFIER_FOR_MERGE_CALCULATION_LINK:ConstantVariable.ExecutionParameters.SELECTED_SECOND_LEVEL_LOCAL_CLASSIFIER_FOR_MERGE_CALCULATION_CONTENT);
		fileName += ConstantVariable.ExecutionParameters.SELECTED_SECOND_LEVEL_LOCAL_CLASSIFIER_FOR_MERGE_CALCULATION_LINK;
		
		if(stage==ConstantVariable.Sampling_Constants.TRAINING_STAGE)
			fileName += "Train";
		else if(stage==ConstantVariable.Sampling_Constants.VALIDATION_STAGE)
			fileName += "Val";
		else if(stage==ConstantVariable.Sampling_Constants.TEST_STAGE)
			fileName += "Test";
		
		fileName =fileName+"_"+foldNo+"_";
			
		
		fileName +=ConstantVariable.DefaultFileNamesConstants.RAW_RESULTS_FILE_SUFFIX;
		
		
		//System.out.println("fileNameForThePreviousIntegrityCheckFile:"+fileNameForThePreviousIntegrityCheckFile);
			
		return fileName;
	}
	
	/********************FEATURE SELECTION RELATED********************/
	
	public static String getDirectoryNameForFeatureSelectionFiles()
	{
		//CoraXOClsYY.txt
		
		String folderName = DirectoryStructureAndSettingsClass.getFullPathOfTheStaticRootDirectoryNameForTheCurrentDataset()
		+ConstantVariable.DefaultDirectoryNamesConstants.DirectoriesUnderStaticDatasetDirectory.FEATURE_SELECTION_RELATED_TO_DATASET_FOLDER_NAME;
				
		return folderName;
	}
	
	public static String getFileNameForSelectedFeaturesFile(int index)
	{
		//CoraXOClsYY.txt
		
		String fileName=DirectoryStructureAndSettingsClass.getDatasetName();
		
		//fileName += DirectoryStructureAndSettingsClass.getDatasetName()+(edgeType==0 ? "LO":"CO");
		
		fileName += "_SF_";
		
		fileName =fileName+index+"_";
		
		fileName +=ConstantVariable.DefaultFileNamesConstants.SELECTED_FEATURES_FILE_SUFFIX;
		
		
		//System.out.println("fileNameForThePreviousIntegrityCheckFile:"+fileNameForThePreviousIntegrityCheckFile);
			
		return fileName;
	}
}




